package com.ssy.bus.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ssy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("bus_outpatient")
public class Outpatient implements Serializable {
    private static final long serialVersionUID = 2328660903664423288L;

    private String id;

    private String idNumber;

    private Integer depId;

    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal price;

    /**
     * 流水编号
     */
    private String number;

    /**
     * 挂号状态
     * 1 待就诊
     * 2就诊完成
     */
    private Integer state;

    /**
     * 就诊日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date seeTime;

    /**
     * 挂号类型
     */
    private Integer type;

    /**
     * 挂号时段
     */
    private Integer intervals;

    /**
     * 患者姓名
     */
    @TableField(exist = false)
    private String patientName;

    /**
     * 科室名称
     */
    @TableField(exist = false)
    private String depName;

    /**
     * 接诊医生名称
     */
    @TableField(exist = false)
    private String doctorName;

    /**
     * 患者
     */
    @TableField(exist = false)
    private Patient patient;


}
